FileReadOnly

Returns True or False to indicate if a file is read-only.

Syntax

FileReadOnly("FilePath")

Arguments

Argument Description
FilePath Full path to the file. See Identifying files and directories in statements for information about configuring full paths relative to the workspace or script directory.

Return value

Value Description
True File is read-only.
False File is not read-only.

Example

If (FileReadOnly("C:\\Testing\\Output.txt") = True) Then

PrintLn("File is read-only.")

Else

PrintLn("File is not read-only.")

End If